package com.project.service.impl;

import com.project.bean.UserBean;
import com.project.dao.UserDao;
import com.project.dao.impl.UserDaoImpl;
import com.project.service.UserService;

import java.util.List;

public class UserServiceImpl implements UserService {
    private UserDao dao = new UserDaoImpl();
    @Override
    public UserBean lang(String name, String pwd) {
        return dao.lang(name,pwd);
    }

    @Override
    public void add(UserBean user) {
        dao.add(user);
    }

    @Override
    public List<UserBean> findAll() {
        return dao.findAll();
    }
}
